package com.example.cushion.ui;

import android.graphics.Color;
import android.support.v7.widget.RecyclerView;

import org.itzheng.and.baseutils.ui.UIUtils;
import org.itzheng.and.recyclerview.decoration.DecorationManager;

/**
 * Title:<br>
 * Description: <br>
 *
 * @email ItZheng@ZoHo.com
 * Created by itzheng on 2017-11-7.
 */
public class DividerManager {

    public static RecyclerView.ItemDecoration getCommonLinearLayoutDecoration() {
        RecyclerView.ItemDecoration decoration = DecorationManager.LinearLayoutManager.
                newItemDecoration(DecorationManager.ShowDivider.SHOW_DIVIDER_BEGINNING |
                                DecorationManager.ShowDivider.SHOW_DIVIDER_MIDDLE | DecorationManager.ShowDivider.SHOW_DIVIDER_END
                        , UIUtils.dip2px(10), Color.RED);
        return decoration;
    }

}
